package com.itheima.多态.多态入门_01;

public class Demo {
    public static void main(String[] args) {
        Cat c=new Cat();
        c.eat();
        Animal a = new Cat();

        a.eat();
        Animal d  = new Dog();
        d.eat();
    }
}
